package com.cosmoplat.xikai.business.domain.dto.mes;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName CloseAlarmByCheckedMesDTO
 * @Description 点检完成-关闭告警
 * @Author wdf
 * @Date 2025/1/7
 */
@ApiModel(description = "点检完成-关闭告警")
@Data
public class CloseAlarmByCheckedMesDTO {

    @ApiModelProperty(value = "报警任务ID", example = "1234567890")
    private String taskID;

    @ApiModelProperty(value = "处理信息列表")
    private List<HandleInfo> handleInfo;


    @Data
    @ApiModel(description = "处理信息对象")
    static class HandleInfo {

        @ApiModelProperty(value = "处理用户ID", example = "user123")
        private String userId;

        @ApiModelProperty(value = "处理用户编号", example = "code456")
        private String userCode;

        @ApiModelProperty(value = "处理用户名称", example = "张三")
        private String userName;

        @ApiModelProperty(value = "处理开始时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private String startTime;

        @ApiModelProperty(value = "处理完成时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private String endTime;
    }
}
